﻿namespace Basic.Repository.Abstract.Entities.SqlSugarEntities;

public class BaseEntity<T> : IEntity<T>, ICreator
{
    [SugarColumn(IsPrimaryKey = true)]
    public T Id { get; set; }

    public long CreateBy { get; set; }

    public DateTime CreationTime { get; set; }

    public long ModifiedBy { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? ModificationTime { get; set; }

    /// <summary>
    /// 0-可用；1-已删除；2-冻结/停用；
    /// </summary>
    public int State { get; set; }

}